package com.cloud.open.dto;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 应用保存授权参数
 */
@Data
public class AppSaveAuthorizationsParamDTO {
    /**
     * 应用ID
     */
    @NotNull(message = "应用主键ID不允许为空")
    private Integer appId;

    /**
     * 授权资源
     */
    @NotEmpty(message = "授权资源不允许为空")
    private List<Integer> resourceIds;
}
